﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ProjektgrupowyKonsola
{
    public partial class Form1 : Form
    {
        Form2 newform;
        Form3 newforma;
        Form4 newfrm;
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            newform = new Form2();
            newform.ShowDialog();
            newform.Dispose();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            newforma = new Form3();
            newforma.ShowDialog();
            newforma.Dispose();
        }

        private void button4_Click(object sender, EventArgs e)
        {
            newfrm = new Form4();
            newfrm.ShowDialog();
            newfrm.Dispose();
        }
        }
    }

